<ion-header-bar class="bar-top text-center">
    <div class="buttons">
        <nav-button class="back" ng-click="back()" ></nav-button>
    </div>
    <h1 class="title">我要咨询</h1>
    <div class="buttons">
      <nav-button class="create ng-cloak" ng-cloak ng-click="vm.over()" ng-if="vm.userType==2 && vm.call.state!=2">结束</nav-button>
    </div>
</ion-header-bar>
<ion-view>
    <ion-content class="chat chat-page" scroll="false">
        <div class="chat-list">
            <div class="chat-list-box" infinite-list scroll="vm.loadMsg()">
                <message-list ng-model="vm.msgs" call="vm.call" doc-head='vm.docHead' head="vm.head" top-title="vm.topTitle"></message-list>
                <div id="msg-bottom"></div>
            </div>
        </div>
        <div class="chat-box row">
            <dic class="col col-10 img"><button class="btn-img" ng-click="vm.getImage()"></button></dic>
            <div class="col col-70 txt"><input type="text" class="message" placeholder="短信/彩信" ng-model="vm.message" ng-keyup="vm.keyup($event)"></div>
            <div class="col col-20 send"><button class="btn-send" ng-click="vm.sendMsg()">发送</button></div>
        </div>
    </ion-content>
        
</ion-view>